"""
https://github.com/tqdm/tqdm
"""
from tqdm import tqdm
import time

N = 6
M = 100
UNIT = M // N
accu = 0
with tqdm(total=M) as pbar:
    for i in range(N):
        time.sleep(0.2)
        accu += UNIT
        pbar.update(UNIT)
    pbar.update(M - accu)
    